<?php

namespace common\models;


use yii\db\ActiveRecord;

class UserHotWord extends ActiveRecord
{
    public static function tableName()
    {
        return 'user_hot_word';
    }

    public function rules()
    {
        return [
            [['id','search_times','user_id','is_del','type','create_time', 'update_time'],'integer'],
            [['word'],'string'],

        ];
    }

    public function attributeLabels()
    {
        return [
            'id' => 'id',
            'word' =>' 热词',
            'search_times' => '搜索次数',
            'user_id' => 'user_id',
            'is_del' => '是否删除',
            'type' => '类型',
            'create_time' => '创建时间',
            'update_time' => '更新时间',
        ];
    }

}